package com.yue92.datalife.service;

import com.yue92.datalife.model.User;

import java.util.Optional;

public interface IUserService extends IService<User, Long> {

    Optional<User> getByToken(String token);

    Optional<User> getByCertificate(String email, String password);

    String generateToken(Long userId);

    void deleteOldToken(Long userId);

}
